FROM java:8
VOLUME /tmp
ADD demo-docker-1.0-SNAPSHOT.jar app.jar
## mac 系统中添加这一行会报错
#RUN bash - c 'touch /app.jar'
RUN sh -c 'touch /app.jar'
EXPOSE 7777
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
#ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
